import Vue from 'vue';
import ElementUI from 'element-ui';
import axios from './axios';
import 'element-ui/lib/theme-chalk/index.css';
import dataV from '@jiaminghi/data-view';
import router from './router.js';
import { website } from '@/config.js';
import App from './App.vue';
import store from './store';
import { EventBus } from '@/utils/event-bus';
import { globalEvent } from '@/utils/event';
import * as echarts from 'echarts';
import Highcharts from 'highcharts/highstock';
import Highcharts3D from 'highcharts/highcharts-3d';
import cylinder from 'highcharts/modules/cylinder';
import oldie from 'highcharts/modules/oldie';
import drilldown from 'highcharts/modules/drilldown';

import './styles/common.scss';
import '@/utils/es6';
import '@/mock/';
//导入主题文件
import '@/theme/index.js';
//数据处理插件,按需引入
import { template, templateSettings } from 'lodash-es';
Vue.config.productionTip = false;
window.axios = axios;
window.echarts = echarts;
window.Highcharts = Highcharts;
Highcharts3D(Highcharts);
cylinder(Highcharts);
oldie(Highcharts);
drilldown(Highcharts);
document.title = website.title;
Vue.use(ElementUI);
Vue.use(window.AVUE);
Vue.use(dataV);
Vue.prototype.$website = website;
Vue.prototype.$bus = EventBus;
Vue.prototype.$globalEvent = globalEvent;
Vue.prototype._template = template;
Vue.prototype._templateSettings = templateSettings;

new Vue({
	router,
	store,
	render: h => h(App)
}).$mount('#app');
